#define _CRT_SECURE_NO_WARNINGS 1
#include"_string.h"
using namespace yun;
void test1()
{
	yun::string s1("Yunzhong");
	s1 += " wu yue";
	yun::string s2(s1);
	s2 += ' ';
	s1.insert(3, "xuan");
	swap(s1, s2);
	s1.clear();
	s2.erase(8,3);
	s2.erase(3);
}
void test2()
{
	yun::string s;
	cin >> s;
	cout << s << endl;
	cin >> s;
	cout << s << endl;
}
void test3()
{
	yun::string s1("yun zhong");
	auto s2 = s1;
	yun::string s3("wu yue");
	cout << (s2 == s1) << endl;
	cout << (s3 > s1) << endl;
	cout << (s3 < s1) << endl;
	cout << (s3 == s1) << endl;
}
int main()
{
	test1();
	return 0;
}